package com.ca.project.Server.Modules.RotatingChat.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ca.project.Server.Modules.RotatingChat.Context.UploadRotatingChatContext;
import com.ca.project.Server.Modules.RotatingChat.Entity.Rotatingchat;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author ASUS
 * @description 针对表【rotatingchat】的数据库操作Service
 * @createDate 2024-12-31 14:43:19
 */
public interface RotatingChatService extends IService<Rotatingchat> {

    /**
     * 上传轮播图
     *
     * @param uploadRotatingChatContext
     */
    void uploadRotatingChat(UploadRotatingChatContext uploadRotatingChatContext);

    /**
     * 禁用轮播图
     *
     * @param id
     */
    void disable(Long id);

    /**
     * 恢复轮播图
     *
     * @param id
     */
    void recover(Long id);

    /**
     * 分页
     *
     * @param currentPage
     * @param pageSize
     * @param rotatingchat
     * @return
     */
    IPage<Rotatingchat> getPage(Integer currentPage, Integer pageSize, Rotatingchat rotatingchat);

    /**
     * 分页
     *
     * @param currentPage
     * @param pageSize
     * @return
     */
    IPage<Rotatingchat> getPage(Integer currentPage, Integer pageSize);

    /**
     * 删除轮播图
     *
     * @param filename
     * @return
     */
    boolean deleteRotatingChat(String filename);
}
